package com.kate.mall.order.controller.form;

import com.kate.mall.common.utils.AbstractObject;
import com.kate.mall.order.dto.OrderItemDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description: 用一句话描述
 * @Auther: 新梦想*陈超
 * @Date: 2021/10/30 15:15
 */
@Data
public class OrderVO extends AbstractObject {
    /**
     * 购物车Id
     */
    private  Integer cartId;

    /**
     * 用户积分减免
     */
    @ApiModelProperty(value = "用户积分减免")
    private BigDecimal integralPrice;
    /**
     * 团购优惠价减免
     */
    @ApiModelProperty(value = "团购优惠价减免")
    private BigDecimal grouponPrice;
    /**
     * 订单费用， = goods_price + freight_price - coupon_price
     */
    @ApiModelProperty(value = "订单费用， = goods_price + freight_price - coupon_price")
    private BigDecimal orderPrice;

    /**
     * 订单费用， = goods_price + freight_price - coupon_price
     */
    @ApiModelProperty(value = "商品总价， = goods_price")
    private BigDecimal goodsPrice;
    /**
     * 实付费用， = order_price - integral_price
     */
    @ApiModelProperty(value = "实付费用， = order_price - integral_price")
    private BigDecimal actualPrice;
    /**
     * 优惠券减免
     */
    @ApiModelProperty(value = "优惠券减免")
    private BigDecimal couponPrice;
    /**
     * 配送费用
     */
    @ApiModelProperty(value = "配送费用")
    private BigDecimal freightPrice;
    /**
     * 订单包含的订单条目
     */
    private List<OrderItemDTO> orderItems;


    //订单VO传递过来数据字段
    private Integer addressId;
    private Integer couponId;
    private Integer grouponLinkId;
    private Integer grouponRulesId;
    private Integer userCouponId;

}
